package com.wx_shop.api.vo;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

import com.wx_shop.api.comm.DValid.QueryParams;

public class BaseReq<T> {

	@Valid
	private T data;

	@NotNull(groups={QueryParams.class})
	private Integer currPage;
	
	@NotNull(groups={QueryParams.class})
	private Integer pageSize;

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}

	public Integer getCurrPage() {
		return currPage;
	}

	public void setCurrPage(Integer currPage) {
		this.currPage = currPage;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

}
